-- @owner: opentestcase005
-- @date: 2020/8/10
-- @testpoint: 创建函数，使用and表达式给参数取默认值
-- @modified: by opentestcase018 at 2022.05.20:优化用例，删除敏感信息
drop FUNCTION if EXISTS x_testfun1;
CREATE FUNCTION x_testfun1 (c_int int DEFAULT 2020 and 2019)  RETURNS int  AS $$
        BEGIN
                RETURN (c_int);
        END;
$$ LANGUAGE plpgsql;
/
call x_testfun1();
drop FUNCTION x_testfun1;